import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

//引入模块
import home from './home'
import search from './search'
import detail from './detail'
import shopcart  from './shopcart'
import users from './users'
import trade from './trade'

const state ={

}
const mutations={

}
const actions ={

}
const getters ={

}

export default new Vuex.Store({
    state,
    mutations,
    actions,
    getters,
    modules:{
        home,
        search,
        detail,
        shopcart,
        users,
        trade
    }
})